.class public Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;
.super Lcom/google/android/maps/MapActivity;
.source "FootprintDetailViewActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field private static final MENU_DELETE:I = 0x1

.field private static final MENU_EDIT:I = 0x0

.field private static final MENU_EXPORT:I = 0x2

.field private static final REQUEST_EDIT:I = 0x21

.field private static final TAG:Ljava/lang/String; = "FootprintDetailViewActivity"


# instance fields
.field private addressText:Landroid/widget/TextView;

.field private buttonAddress:Landroid/widget/ImageView;

.field private buttonLocation:Landroid/widget/ImageView;

.field private buttonPhone:Landroid/widget/ImageView;

.field private buttonWeb:Landroid/widget/ImageView;

.field private categoryIcon:Landroid/widget/ImageView;

.field private categroyData:Landroid/widget/TextView;

.field private connectionFailedText:Landroid/widget/TextView;

.field private latText:Landroid/widget/TextView;

.field private lonText:Landroid/widget/TextView;

.field private mAddrDiv:Landroid/widget/ImageView;

.field private mAddressPanel:Landroid/view/View;

.field private mBalloonView:Landroid/widget/ImageView;

.field private mFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field private mLocationDiv:Landroid/widget/ImageView;

.field private mLocationPanel:Landroid/view/View;

.field private mMap:Lcom/google/android/maps/MapView;

.field private mMapDiv:Landroid/widget/ImageView;

.field private mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

.field private mMediaDiv:Landroid/widget/ImageView;

.field private mPhoneDiv:Landroid/widget/ImageView;

.field private mPhonePanel:Landroid/view/View;

.field private mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

.field private mTextBoxDiv:Landroid/widget/ImageView;

.field private mWebDiv:Landroid/widget/ImageView;

.field private mWebPanel:Landroid/view/View;

.field private phoneText:Landroid/widget/TextView;

.field private photoView:Landroid/widget/ImageView;

.field private rating:Landroid/widget/RatingBar;

.field private textBox:Landroid/widget/TextView;

.field private textCreateDate:Landroid/widget/TextView;

.field private textCreateTime:Landroid/widget/TextView;

.field private textNote:Landroid/widget/TextView;

.field private titleText:Landroid/widget/TextView;

.field private webText:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 52
    invoke-direct {p0}, Lcom/google/android/maps/MapActivity;-><init>()V

    .line 129
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 52
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->openMapView()V

    return-void
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 1
    .parameter "x0"

    .prologue
    .line 52
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object v0
.end method

.method private handleVisibleItem()V
    .locals 8

    .prologue
    const/16 v7, 0x8

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 320
    const/4 v2, 0x1

    .line 321
    .local v2, noDetailInfo:Z
    const/4 v3, 0x1

    .line 323
    .local v3, noMoreInfo:Z
    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    if-lez v4, :cond_0

    .line 324
    invoke-direct {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showAddressPanel(Z)V

    .line 325
    const/4 v2, 0x0

    .line 326
    const/4 v3, 0x0

    .line 331
    :goto_0
    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    if-eqz v4, :cond_1

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    if-lez v4, :cond_1

    .line 332
    invoke-direct {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showphonePanel(Z)V

    .line 333
    const/4 v2, 0x0

    .line 334
    const/4 v3, 0x0

    .line 339
    :goto_1
    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    if-eqz v4, :cond_2

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    if-lez v4, :cond_2

    .line 340
    invoke-direct {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showWebPanel(Z)V

    .line 341
    const/4 v2, 0x0

    .line 342
    const/4 v3, 0x0

    .line 347
    :goto_2
    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-static {v4}, Lcom/htc/android/footprints/utils/FootprintUtils;->checkAudioData(Lcom/htc/android/footprints/vo/Footprint;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 348
    invoke-direct {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showMediaPanel(Z)V

    .line 349
    const/4 v2, 0x0

    .line 350
    const/4 v3, 0x0

    .line 355
    :goto_3
    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v4, :cond_4

    .line 356
    invoke-direct {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showMapPanel(Z)V

    .line 357
    const/4 v2, 0x0

    .line 358
    const/4 v3, 0x0

    .line 363
    :goto_4
    const v4, 0x7f0c0033

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 364
    .local v1, infoFrame:Landroid/view/ViewGroup;
    const v4, 0x7f0c0049

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 366
    .local v0, emptyFrame:Landroid/view/ViewGroup;
    if-eqz v2, :cond_5

    .line 367
    invoke-virtual {v1, v7}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 373
    :goto_5
    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    if-eqz v4, :cond_6

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    if-lez v4, :cond_6

    .line 374
    invoke-direct {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showNotesPanel(Z)V

    .line 375
    const/4 v3, 0x0

    .line 380
    :goto_6
    if-eqz v3, :cond_7

    .line 381
    invoke-virtual {v0, v5}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 385
    :goto_7
    return-void

    .line 328
    .end local v0           #emptyFrame:Landroid/view/ViewGroup;
    .end local v1           #infoFrame:Landroid/view/ViewGroup;
    :cond_0
    invoke-direct {p0, v5}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showAddressPanel(Z)V

    goto :goto_0

    .line 336
    :cond_1
    invoke-direct {p0, v5}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showphonePanel(Z)V

    goto :goto_1

    .line 344
    :cond_2
    invoke-direct {p0, v5}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showWebPanel(Z)V

    goto :goto_2

    .line 352
    :cond_3
    invoke-direct {p0, v5}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showMediaPanel(Z)V

    goto :goto_3

    .line 360
    :cond_4
    invoke-direct {p0, v5}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showMapPanel(Z)V

    goto :goto_4

    .line 369
    .restart local v0       #emptyFrame:Landroid/view/ViewGroup;
    .restart local v1       #infoFrame:Landroid/view/ViewGroup;
    :cond_5
    invoke-virtual {v1, v5}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_5

    .line 377
    :cond_6
    invoke-direct {p0, v5}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->showNotesPanel(Z)V

    goto :goto_6

    .line 383
    :cond_7
    invoke-virtual {v0, v7}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_7
.end method

.method private networkConnected()Z
    .locals 5

    .prologue
    .line 589
    const/4 v0, 0x1

    .line 590
    .local v0, connected:Z
    const-string v3, "connectivity"

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 591
    .local v1, connectivity:Landroid/net/ConnectivityManager;
    if-eqz v1, :cond_0

    .line 592
    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v2

    .line 593
    .local v2, info:Landroid/net/NetworkInfo;
    if-eqz v2, :cond_1

    invoke-virtual {v2}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v3

    sget-object v4, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v3, v4, :cond_1

    .line 601
    .end local v2           #info:Landroid/net/NetworkInfo;
    :cond_0
    :goto_0
    return v0

    .line 596
    .restart local v2       #info:Landroid/net/NetworkInfo;
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private openMapView()V
    .locals 12

    .prologue
    const/16 v11, 0xa

    const/4 v9, 0x5

    const/4 v10, 0x0

    .line 671
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    if-nez v0, :cond_1

    .line 717
    :cond_0
    :goto_0
    return-void

    .line 674
    :cond_1
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030004

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/ImageButton;

    .line 676
    .local v7, mTapMapViewButton:Landroid/widget/ImageButton;
    const/4 v0, 0x1

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setClickable(Z)V

    .line 678
    const v0, 0x7f020026

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    .line 679
    const v0, 0x7f0200aa

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setImageResource(I)V

    .line 680
    sget-object v0, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 682
    iget-object v8, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    new-instance v0, Lcom/google/android/maps/MapView$LayoutParams;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f090011

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f090010

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v3}, Lcom/google/android/maps/MapView;->getWidth()I

    move-result v3

    sub-int/2addr v3, v9

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v4}, Lcom/google/android/maps/MapView;->getHeight()I

    move-result v4

    sub-int/2addr v4, v9

    const/16 v5, 0x55

    invoke-direct/range {v0 .. v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IIIII)V

    invoke-virtual {v8, v7, v0}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 687
    const v0, 0x7f0c0046

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 688
    .local v6, container:Landroid/widget/LinearLayout;
    new-instance v0, Landroid/view/TouchDelegate;

    new-instance v1, Landroid/graphics/Rect;

    const/16 v2, 0x140

    const/16 v3, 0x1e0

    invoke-direct {v1, v10, v10, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V

    invoke-direct {v0, v1, v7}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v6, v0}, Landroid/widget/LinearLayout;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 690
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$5;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$5;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;)V

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 704
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->networkConnected()Z

    move-result v0

    if-nez v0, :cond_0

    .line 705
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 706
    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    .line 707
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    const v1, 0x7f0a0091

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 708
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    const v1, -0xcccccd

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 710
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    invoke-virtual {v0, v11, v9, v11, v9}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 711
    iget-object v8, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    new-instance v0, Lcom/google/android/maps/MapView$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    const/16 v5, 0x33

    move v3, v10

    move v4, v10

    invoke-direct/range {v0 .. v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IIIII)V

    invoke-virtual {v8, v9, v0}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_0
.end method

.method private showAddressPanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 422
    if-nez p1, :cond_0

    .line 423
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mAddressPanel:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 424
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mAddrDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 429
    :goto_0
    return-void

    .line 426
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mAddressPanel:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 427
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mAddrDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private showLocationPanel(Z)V
    .locals 0
    .parameter "isShow"

    .prologue
    .line 406
    if-nez p1, :cond_0

    .line 410
    :cond_0
    return-void
.end method

.method private showMapPanel(Z)V
    .locals 5
    .parameter "isShow"

    .prologue
    const/16 v4, 0x8

    const/4 v3, 0x0

    .line 388
    const v2, 0x7f0c0045

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 389
    .local v0, MapContainer:Landroid/view/ViewGroup;
    const v2, 0x7f0c0041

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 390
    .local v1, locationInfo:Landroid/view/ViewGroup;
    if-nez p1, :cond_1

    .line 391
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMapDiv:Landroid/widget/ImageView;

    if-eqz v2, :cond_0

    .line 392
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMapDiv:Landroid/widget/ImageView;

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 394
    :cond_0
    invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 395
    invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 403
    :goto_0
    return-void

    .line 397
    :cond_1
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMapDiv:Landroid/widget/ImageView;

    if-eqz v2, :cond_2

    .line 398
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMapDiv:Landroid/widget/ImageView;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 400
    :cond_2
    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 401
    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_0
.end method

.method private showMediaPanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 452
    if-nez p1, :cond_0

    .line 453
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setVisibility(I)V

    .line 454
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 459
    :goto_0
    return-void

    .line 456
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setVisibility(I)V

    .line 457
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private showNotesPanel(Z)V
    .locals 2
    .parameter "isShow"

    .prologue
    .line 413
    const v1, 0x7f0c0047

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    .line 414
    .local v0, textBoxFrame:Landroid/widget/FrameLayout;
    if-nez p1, :cond_0

    .line 415
    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 419
    :goto_0
    return-void

    .line 417
    :cond_0
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto :goto_0
.end method

.method private showWebPanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 442
    if-nez p1, :cond_0

    .line 443
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mWebPanel:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 444
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mWebDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 449
    :goto_0
    return-void

    .line 446
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mWebPanel:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 447
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mWebDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private showphonePanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 432
    if-nez p1, :cond_0

    .line 433
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mPhonePanel:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 434
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mPhoneDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 439
    :goto_0
    return-void

    .line 436
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mPhonePanel:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 437
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mPhoneDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private updateView()V
    .locals 15

    .prologue
    const/16 v3, 0x78

    const/16 v13, 0x28

    const/4 v12, 0x1

    const/4 v5, 0x0

    const-string v14, "FootprintDetailViewActivity"

    .line 261
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->titleText:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 263
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/text/format/DateFormat;->getDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v8

    .line 265
    .local v8, df:Ljava/text/DateFormat;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textCreateDate:Landroid/widget/TextView;

    new-instance v2, Ljava/util/Date;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-wide v10, v4, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v2, v10, v11}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v8, v2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 266
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/text/format/DateFormat;->getTimeFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v9

    .line 268
    .local v9, df_time:Ljava/text/DateFormat;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textCreateTime:Landroid/widget/TextView;

    new-instance v2, Ljava/util/Date;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-wide v10, v4, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v2, v10, v11}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v9, v2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 270
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v0

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->findCategory(Ljava/lang/String;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v7

    .line 273
    .local v7, category:Lcom/htc/android/footprints/vo/Category;
    if-eqz v7, :cond_0

    .line 274
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->categoryIcon:Landroid/widget/ImageView;

    iget-object v2, v7, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-static {p0, v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getCategoryIcon(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 277
    :cond_0
    if-eqz v7, :cond_1

    .line 278
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->categroyData:Landroid/widget/TextView;

    iget-object v2, v7, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    if-eqz v2, :cond_3

    iget-object v2, v7, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    :goto_0
    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 280
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->addressText:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 281
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonAddress:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    if-eqz v2, :cond_4

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_4

    move v2, v12

    :goto_1
    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 282
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->phoneText:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 283
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonPhone:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    if-eqz v2, :cond_5

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_5

    move v2, v12

    :goto_2
    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 284
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonPhone:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 285
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->webText:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 286
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonWeb:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    if-eqz v2, :cond_6

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_6

    move v2, v12

    :goto_3
    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 287
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonWeb:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 289
    const v0, 0x7f0c002a

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->photoView:Landroid/widget/ImageView;

    .line 291
    const/4 v1, 0x0

    .line 292
    .local v1, imageFile:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v0, :cond_2

    .line 293
    new-instance v1, Ljava/io/File;

    .end local v1           #imageFile:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 296
    .restart local v1       #imageFile:Ljava/io/File;
    :cond_2
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    move-object v2, p0

    move v4, v3

    invoke-virtual/range {v0 .. v5}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledImage(Ljava/io/File;Landroid/content/Context;IIZ)Landroid/graphics/Bitmap;

    move-result-object v6

    .line 298
    .local v6, bmp:Landroid/graphics/Bitmap;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->photoView:Landroid/widget/ImageView;

    invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 300
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->rating:Landroid/widget/RatingBar;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mRate:I

    int-to-float v2, v2

    invoke-virtual {v0, v2}, Landroid/widget/RatingBar;->setRating(F)V

    .line 302
    const-string v0, "FootprintDetailViewActivity"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "mFootprint.mLatitude = "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v14, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 303
    const-string v0, "FootprintDetailViewActivity"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "mFootprint.mLongitude = "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v14, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 304
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->latText:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 305
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->lonText:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 306
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v0

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v2}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 307
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mBalloonView:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Lcom/google/android/maps/MapView;->removeView(Landroid/view/View;)V

    .line 308
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mBalloonView:Landroid/widget/ImageView;

    new-instance v3, Lcom/google/android/maps/MapView$LayoutParams;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v4}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v4

    const/16 v5, 0x51

    invoke-direct {v3, v13, v13, v4, v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IILcom/google/android/maps/GeoPoint;I)V

    invoke-virtual {v0, v2, v3}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 310
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->invalidate()V

    .line 312
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textBox:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 313
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setAudioData(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 316
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->handleVisibleItem()V

    .line 317
    return-void

    .line 278
    .end local v1           #imageFile:Ljava/io/File;
    .end local v6           #bmp:Landroid/graphics/Bitmap;
    :cond_3
    const-string v2, ""

    goto/16 :goto_0

    :cond_4
    move v2, v5

    .line 281
    goto/16 :goto_1

    :cond_5
    move v2, v5

    .line 283
    goto/16 :goto_2

    :cond_6
    move v2, v5

    .line 286
    goto/16 :goto_3
.end method


# virtual methods
.method protected isRouteDisplayed()Z
    .locals 1

    .prologue
    .line 606
    const/4 v0, 0x0

    return v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    const-string v2, "DATA"

    .line 611
    const/16 v0, 0x21

    if-ne p1, v0, :cond_1

    .line 612
    const-string v0, "EXTRA_DELETE_FROM_EDIT"

    const/4 v1, 0x0

    invoke-virtual {p3, v0, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 613
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->finish()V

    .line 615
    :cond_0
    const-string v0, "DATA"

    invoke-virtual {p3, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 616
    const-string v0, "DATA"

    invoke-virtual {p3, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Footprint;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 617
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->updateView()V

    .line 622
    :cond_1
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 13
    .parameter "target"

    .prologue
    .line 625
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonPhone:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_1

    .line 626
    new-instance v1, Landroid/content/Intent;

    const-string v9, "android.intent.action.CALL"

    invoke-direct {v1, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 627
    .local v1, intent:Landroid/content/Intent;
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "tel:"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v10, v10, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-virtual {v1, v9}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 628
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->startActivity(Landroid/content/Intent;)V

    .line 668
    .end local v1           #intent:Landroid/content/Intent;
    :cond_0
    :goto_0
    return-void

    .line 629
    :cond_1
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonAddress:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_2

    .line 631
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v9, :cond_0

    .line 634
    const-string v0, "google.streetview:"

    .line 635
    .local v0, geoPos:Ljava/lang/String;
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v9}, Lcom/google/android/maps/MapView;->getZoomLevel()I

    move-result v8

    .line 636
    .local v8, zoomLevel:I
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    int-to-double v9, v9

    const-wide v11, 0x412e848000000000L

    div-double v2, v9, v11

    .line 637
    .local v2, lat:D
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    int-to-double v9, v9

    const-wide v11, 0x412e848000000000L

    div-double v4, v9, v11

    .line 638
    .local v4, lon:D
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "cbll="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, ","

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&cbp=1,0,,0,1.0&mz="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const/4 v10, 0x1

    sub-int v10, v8, v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 641
    new-instance v6, Landroid/content/Intent;

    const-string v9, "android.intent.action.VIEW"

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v10

    invoke-direct {v6, v9, v10}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 642
    .local v6, myIntent:Landroid/content/Intent;
    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 643
    .end local v0           #geoPos:Ljava/lang/String;
    .end local v2           #lat:D
    .end local v4           #lon:D
    .end local v6           #myIntent:Landroid/content/Intent;
    .end local v8           #zoomLevel:I
    :cond_2
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonLocation:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_3

    .line 645
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v9, :cond_0

    .line 648
    const-string v0, "geo:"

    .line 649
    .restart local v0       #geoPos:Ljava/lang/String;
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v9}, Lcom/google/android/maps/MapView;->getZoomLevel()I

    move-result v8

    .line 650
    .restart local v8       #zoomLevel:I
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    int-to-double v9, v9

    const-wide v11, 0x412e848000000000L

    div-double v2, v9, v11

    .line 651
    .restart local v2       #lat:D
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    int-to-double v9, v9

    const-wide v11, 0x412e848000000000L

    div-double v4, v9, v11

    .line 652
    .restart local v4       #lon:D
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, ","

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "?z="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const/4 v10, 0x1

    sub-int v10, v8, v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 654
    new-instance v6, Landroid/content/Intent;

    const-string v9, "android.intent.action.VIEW"

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v10

    invoke-direct {v6, v9, v10}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 655
    .restart local v6       #myIntent:Landroid/content/Intent;
    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 656
    .end local v0           #geoPos:Ljava/lang/String;
    .end local v2           #lat:D
    .end local v4           #lon:D
    .end local v6           #myIntent:Landroid/content/Intent;
    .end local v8           #zoomLevel:I
    :cond_3
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonWeb:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_0

    .line 657
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v9

    const/4 v10, 0x5

    if-lt v9, v10, :cond_0

    .line 659
    const-string v7, ""

    .line 660
    .local v7, uri:Ljava/lang/String;
    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v9

    const-string v10, "http:"

    invoke-virtual {v9, v10}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_4

    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v9

    const-string v10, "https:"

    invoke-virtual {v9, v10}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_4

    .line 662
    const-string v7, "http://"

    .line 664
    :cond_4
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v10, v10, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 665
    new-instance v6, Landroid/content/Intent;

    const-string v9, "android.intent.action.VIEW"

    invoke-static {v7}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v10

    invoke-direct {v6, v9, v10}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 666
    .restart local v6       #myIntent:Landroid/content/Intent;
    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 12
    .parameter "savedInstanceState"

    .prologue
    .line 133
    const-string v0, "FootprintDetailViewActivity"

    const-string v1, "onCreate"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 134
    invoke-super {p0, p1}, Lcom/google/android/maps/MapActivity;->onCreate(Landroid/os/Bundle;)V

    .line 135
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->requestWindowFeature(I)Z

    .line 136
    const/4 v0, 0x3

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->setVolumeControlStream(I)V

    .line 137
    const v0, 0x7f03000f

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->setContentView(I)V

    .line 139
    invoke-static {p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v11

    .line 140
    .local v11, setting:Lcom/htc/android/footprints/utils/SettingInfo;
    invoke-virtual {v11}, Lcom/htc/android/footprints/utils/SettingInfo;->isFirstLaunch()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 141
    new-instance v10, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v10, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    .line 142
    .local v10, hd:Lcom/htc/android/footprints/commonui/HtcDialog;
    invoke-virtual {v10}, Lcom/htc/android/footprints/commonui/HtcDialog;->getWarningDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Lcom/htc/widget/HtcAlertDialog;->show()V

    .line 143
    const/4 v0, 0x0

    invoke-virtual {v11, v0}, Lcom/htc/android/footprints/utils/SettingInfo;->setFirstLaunch(Z)V

    .line 146
    .end local v10           #hd:Lcom/htc/android/footprints/commonui/HtcDialog;
    :cond_0
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "DATA"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p1

    .end local p1
    check-cast p1, Lcom/htc/android/footprints/vo/Footprint;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 148
    const v0, 0x7f0c001c

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->titleText:Landroid/widget/TextView;

    .line 149
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->titleText:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setClickable(Z)V

    .line 150
    const v0, 0x7f0c002f

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->categroyData:Landroid/widget/TextView;

    .line 151
    const v0, 0x7f0c0031

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textCreateDate:Landroid/widget/TextView;

    .line 152
    const v0, 0x7f0c0032

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textCreateTime:Landroid/widget/TextView;

    .line 153
    const v0, 0x7f0c002e

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->categoryIcon:Landroid/widget/ImageView;

    .line 154
    const v0, 0x7f0c0025

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->addressText:Landroid/widget/TextView;

    .line 155
    const v0, 0x7f0c0035

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonAddress:Landroid/widget/ImageView;

    .line 156
    const v0, 0x7f0c0039

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->phoneText:Landroid/widget/TextView;

    .line 157
    const v0, 0x7f0c003d

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->webText:Landroid/widget/TextView;

    .line 158
    const v0, 0x7f0c003c

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonWeb:Landroid/widget/ImageView;

    .line 159
    const v0, 0x7f0c0038

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonPhone:Landroid/widget/ImageView;

    .line 160
    const v0, 0x7f0c0042

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonLocation:Landroid/widget/ImageView;

    .line 161
    const v0, 0x7f0c002c

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RatingBar;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->rating:Landroid/widget/RatingBar;

    .line 162
    const v0, 0x7f0c003f

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    .line 163
    const v0, 0x7f0c0043

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->latText:Landroid/widget/TextView;

    .line 164
    const v0, 0x7f0c0044

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->lonText:Landroid/widget/TextView;

    .line 165
    const v0, 0x7f0c0062

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/google/android/maps/MapView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    .line 166
    const v0, 0x7f0c0034

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mAddressPanel:Landroid/view/View;

    .line 167
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mAddressPanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/16 v5, 0x140

    const/16 v6, 0x64

    invoke-direct {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonAddress:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 168
    const v0, 0x7f0c0037

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mPhonePanel:Landroid/view/View;

    .line 169
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mPhonePanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/16 v5, 0x140

    const/16 v6, 0x64

    invoke-direct {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonPhone:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 170
    const v0, 0x7f0c003b

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mWebPanel:Landroid/view/View;

    .line 171
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mWebPanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/16 v5, 0x140

    const/16 v6, 0x64

    invoke-direct {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonWeb:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 172
    const v0, 0x7f0c0041

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mLocationPanel:Landroid/view/View;

    .line 173
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mLocationPanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/16 v5, 0x140

    const/16 v6, 0x64

    invoke-direct {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonLocation:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 176
    const v0, 0x7f0c0040

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaDiv:Landroid/widget/ImageView;

    .line 177
    const v0, 0x7f0c003a

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mPhoneDiv:Landroid/widget/ImageView;

    .line 178
    const v0, 0x7f0c003e

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mWebDiv:Landroid/widget/ImageView;

    .line 179
    const v0, 0x7f0c0036

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mAddrDiv:Landroid/widget/ImageView;

    .line 181
    const v0, 0x7f0c0048

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textBox:Landroid/widget/TextView;

    .line 183
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/text/format/DateFormat;->getDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v8

    .line 185
    .local v8, df:Ljava/text/DateFormat;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textCreateDate:Landroid/widget/TextView;

    new-instance v1, Ljava/util/Date;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-wide v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v8, v1}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 186
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/text/format/DateFormat;->getTimeFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v9

    .line 188
    .local v9, df_time:Ljava/text/DateFormat;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textCreateTime:Landroid/widget/TextView;

    new-instance v1, Ljava/util/Date;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-wide v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v9, v1}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 190
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/provider/FootprintManager;->findCategory(Ljava/lang/String;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v7

    .line 193
    .local v7, category:Lcom/htc/android/footprints/vo/Category;
    if-eqz v7, :cond_1

    .line 194
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->categoryIcon:Landroid/widget/ImageView;

    iget-object v1, v7, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-static {p0, v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->getCategoryIcon(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 197
    :cond_1
    if-eqz v7, :cond_2

    .line 198
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->categroyData:Landroid/widget/TextView;

    iget-object v1, v7, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    if-eqz v1, :cond_4

    iget-object v1, v7, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    :goto_0
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 200
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->addressText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 201
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonAddress:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v1, :cond_5

    const/4 v1, 0x1

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 202
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonAddress:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 203
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->phoneText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 204
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonPhone:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    if-eqz v1, :cond_6

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_6

    const/4 v1, 0x1

    :goto_2
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 205
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonPhone:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 206
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->webText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 207
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonWeb:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    if-eqz v1, :cond_7

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_7

    const/4 v1, 0x1

    :goto_3
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 208
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonWeb:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 209
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonLocation:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v1, :cond_8

    const/4 v1, 0x1

    :goto_4
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 210
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->buttonLocation:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 212
    const v0, 0x7f0c002a

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->photoView:Landroid/widget/ImageView;

    .line 214
    const/4 v1, 0x0

    .line 215
    .local v1, imageFile:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v0, :cond_3

    .line 216
    new-instance v1, Ljava/io/File;

    .end local v1           #imageFile:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 219
    .restart local v1       #imageFile:Ljava/io/File;
    :cond_3
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    const/16 v3, 0x78

    const/16 v4, 0x78

    const/4 v5, 0x0

    move-object v2, p0

    invoke-virtual/range {v0 .. v5}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledImage(Ljava/io/File;Landroid/content/Context;IIZ)Landroid/graphics/Bitmap;

    move-result-object v6

    .line 221
    .local v6, bmp:Landroid/graphics/Bitmap;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->photoView:Landroid/widget/ImageView;

    invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 223
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->rating:Landroid/widget/RatingBar;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .end local v1           #imageFile:Ljava/io/File;
    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mRate:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/widget/RatingBar;->setRating(F)V

    .line 224
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->textBox:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 226
    const-string v0, "FootprintDetailViewActivity"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "mFootprint.mLatitude = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 227
    const-string v0, "FootprintDetailViewActivity"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "mFootprint.mLongitude = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 228
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->latText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 229
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->lonText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 230
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v1}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 231
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v1}, Lcom/google/android/maps/MapView;->getMaxZoomLevel()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 233
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mBalloonView:Landroid/widget/ImageView;

    .line 234
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mBalloonView:Landroid/widget/ImageView;

    const v1, 0x7f020097

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 235
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mBalloonView:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setClickable(Z)V

    .line 236
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mBalloonView:Landroid/widget/ImageView;

    new-instance v2, Lcom/google/android/maps/MapView$LayoutParams;

    const/16 v3, 0x28

    const/16 v4, 0x28

    iget-object v5, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v5}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v5

    const/16 v6, 0x51

    invoke-direct {v2, v3, v4, v5, v6}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IILcom/google/android/maps/GeoPoint;I)V

    .end local v6           #bmp:Landroid/graphics/Bitmap;
    invoke-virtual {v0, v1, v2}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 239
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$1;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$1;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 244
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->titleText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 249
    new-instance v0, Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/utils/StorageUtil;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 250
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    new-instance v1, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$2;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$2;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;)V

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/utils/StorageUtil;->SetOnChangeStorageListerner(Lcom/htc/android/footprints/utils/StorageUtil$OnChangeStorageListener;)V

    .line 258
    return-void

    .line 198
    :cond_4
    const-string v1, ""

    goto/16 :goto_0

    .line 201
    :cond_5
    const/4 v1, 0x0

    goto/16 :goto_1

    .line 204
    :cond_6
    const/4 v1, 0x0

    goto/16 :goto_2

    .line 207
    :cond_7
    const/4 v1, 0x0

    goto/16 :goto_3

    .line 209
    :cond_8
    const/4 v1, 0x0

    goto/16 :goto_4
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 5
    .parameter "menu"

    .prologue
    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 539
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a0021

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v4, v4, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200b0

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 541
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a000f

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v2, v2, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200af

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 543
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a0010

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v3, v3, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200ae

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 546
    return v3
.end method

.method protected onDestroy()V
    .locals 2

    .prologue
    .line 525
    const-string v0, "FootprintDetailViewActivity"

    const-string v1, "onDestroy"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 526
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 527
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onDestroy()V

    .line 529
    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 8
    .parameter "item"

    .prologue
    const/4 v5, 0x1

    const/4 v7, 0x0

    .line 551
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v3

    if-nez v3, :cond_1

    .line 552
    new-instance v2, Landroid/content/Intent;

    const-string v3, "com.htc.android.footprints.activity.FootprintDetailEditActivity"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 555
    .local v2, intent:Landroid/content/Intent;
    :try_start_0
    const-string v3, "DATA"

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 557
    const/16 v3, 0x21

    invoke-virtual {p0, v2, v3}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 585
    .end local v2           #intent:Landroid/content/Intent;
    :cond_0
    :goto_0
    return v7

    .line 559
    .restart local v2       #intent:Landroid/content/Intent;
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 560
    .local v0, ex:Ljava/lang/Exception;
    const-string v3, "FootprintDetailViewActivity"

    const-string v4, "Disable to launch edit mode"

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 562
    .end local v0           #ex:Ljava/lang/Exception;
    .end local v2           #intent:Landroid/content/Intent;
    :cond_1
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v3

    if-ne v3, v5, :cond_2

    .line 563
    new-instance v3, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v3, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v4, 0x7f0a00a5

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v3

    const v4, 0x1080027

    invoke-virtual {v3, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v3

    const v4, 0x7f0a0018

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-array v5, v5, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v6, v6, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    aput-object v6, v5, v7

    invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v3

    const v4, 0x7f0a0065

    new-instance v5, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$4;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$4;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;)V

    invoke-virtual {v3, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v3

    const v4, 0x7f0a0004

    new-instance v5, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$3;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity$3;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;)V

    invoke-virtual {v3, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v3

    invoke-virtual {v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->show()Lcom/htc/widget/HtcAlertDialog;

    goto :goto_0

    .line 578
    :cond_2
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v3

    const/4 v4, 0x2

    if-ne v3, v4, :cond_0

    .line 579
    new-array v1, v5, [Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    aput-object v3, v1, v7

    .line 582
    .local v1, footprints:[Lcom/htc/android/footprints/vo/Footprint;
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    const-string v4, " "

    const-string v5, "_"

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3

    invoke-static {p0, v3, v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->exportKMZ(Landroid/app/Activity;Ljava/lang/String;[Lcom/htc/android/footprints/vo/Footprint;)V

    goto :goto_0
.end method

.method protected onPause()V
    .locals 2

    .prologue
    .line 463
    const-string v0, "FootprintDetailViewActivity"

    const-string v1, "onPause"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 464
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onPause()V

    .line 465
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    if-eqz v0, :cond_0

    .line 466
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v0}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->closeMediaPanel()V

    .line 468
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v0, :cond_1

    .line 469
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/StorageUtil;->closeStorgaeUtil()V

    .line 471
    :cond_1
    return-void
.end method

.method protected onResume()V
    .locals 3

    .prologue
    .line 487
    const-string v1, "FootprintDetailViewActivity"

    const-string v2, "onResume"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 489
    invoke-static {}, Lcom/htc/android/footprints/utils/FootprintUtils;->isResetByWidget()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 490
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 491
    .local v0, intent:Landroid/content/Intent;
    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 492
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->startActivity(Landroid/content/Intent;)V

    .line 493
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->finish()V

    .line 496
    .end local v0           #intent:Landroid/content/Intent;
    :cond_0
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onResume()V

    .line 498
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    if-eqz v1, :cond_1

    .line 499
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-static {v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->checkAudioData(Lcom/htc/android/footprints/vo/Footprint;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 500
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v1, v2}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setAudioData(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 507
    :cond_1
    :goto_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v1, :cond_2

    .line 508
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v1}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v2}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 509
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v1}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v2}, Lcom/google/android/maps/MapView;->getMaxZoomLevel()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 512
    :cond_2
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->handleVisibleItem()V

    .line 514
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    if-eqz v1, :cond_3

    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->networkConnected()Z

    move-result v1

    if-eqz v1, :cond_3

    .line 515
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Lcom/google/android/maps/MapView;->removeView(Landroid/view/View;)V

    .line 516
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->connectionFailedText:Landroid/widget/TextView;

    .line 518
    :cond_3
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v1, :cond_4

    .line 519
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/StorageUtil;->startStorageUtil()V

    .line 521
    :cond_4
    return-void

    .line 502
    :cond_5
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailViewActivity;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v1}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->disableMediaControl()V

    goto :goto_0
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 475
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onStart()V

    .line 477
    return-void
.end method

.method protected onStop()V
    .locals 0

    .prologue
    .line 481
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onStop()V

    .line 483
    return-void
.end method
